package com.hqyj.springboot.modules.account.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.springboot.modules.account.entity.Resource;
import com.hqyj.springboot.modules.common.vo.Result;
import com.hqyj.springboot.modules.common.vo.Search;

import java.util.List;

public interface ResourceService {
    Result<Resource> addResource(Resource resource);

    Result<Resource> updateResource(Resource resource);

    Result<Object> deleteResourceById(int id);

    Resource getResourceById(int id);

    List<Resource> getResourcesByRoleId(int roleId);

    PageInfo<Resource> getResourcesBySearch(Search search);

}
